/*** Configuration code to -include- in every
	 project master do-file.
***/

version 16
set more off
set varabbrev off

adopath ++ "`c(pwd)'/code/ado"
adopath ++ "`c(pwd)'/code/ado_ssc"
adopath ++ "`c(pwd)'/code/ado_ssc/reghdfe"

project, uses("code/ado/gtools_project_statements.ado") raw
gtools_project_statements using "code/ado_ssc"
mata: mata mlib index

project, uses("code/ado/scheme-opp_insights_contrast_darkwords.scheme") raw
set scheme opp_insights_contrast_darkwords

project, uses("code/ado/color-oi1.style") reference
project, uses("code/ado/color-oi2.style") reference
project, uses("code/ado/color-oi3.style") reference
project, uses("code/ado/color-oi4.style") reference
project, uses("code/ado/color-oi5.style") reference
project, uses("code/ado/color-oi6.style") reference
project, uses("code/ado/color-oi7.style") reference
project, uses("code/ado/color-oi8.style") reference
project, uses("code/ado/color-oi9.style") reference
project, uses("code/ado/color-oi10.style") reference

project, uses("code/config_interactive.do") reference

* Make required folders
cap mkdir "data/derived"
cap mkdir "results"

* Specify dependencies for dh_export.ado
project, uses("code/ado/dh_export.ado") raw
project, uses("code/ado/dh_export.sthlp") reference

project, uses("code/ado_ssc/confirmdir.ado") raw
project, uses("code/ado_ssc/confirmdir.hlp") reference

* Specify paths for custom ado files
project, uses("code/ado/gzimport.ado") raw
project, uses("code/ado/merge2.ado") raw
project, uses("code/ado/merge2.sthlp") reference
project, uses("code/ado/oi_graph_export.ado") raw
project, uses("code/ado/xlab_months.ado") raw
project, uses("code/ado/yamlout.ado") raw
project, uses("code/ado_ssc/addplot.ado") raw
project, uses("code/ado_ssc/addplot.hlp") reference
project, uses("code/ado_ssc/binscatter.ado") raw
project, uses("code/ado_ssc/statastates.ado") raw
project, uses("code/ado_ssc/unique.ado") raw
project, uses("code/ado_ssc/unique.sthlp") reference

* Specify dependency on custom project package
project, uses("code/ado_project/project_setup.dlg") reference
project, uses("code/ado_project/project.ado") reference
project, uses("code/ado_project/project.hlp") reference
project, uses("code/ado_project/project.pkg") reference
project, uses("code/ado_project/stata.toc") reference

* Specify paths for reghdfe and dependencies
local reghdfe_ado_files: dir "code/ado_ssc/reghdfe" files "*"
local reghdfe_ado_list: list sort reghdfe_ado_files
foreach file in `reghdfe_ado_list' {
	project, uses("code/ado_ssc/reghdfe/`file'") raw
}

